package org.xiyinjihe.platform.error;

public enum CommonError implements IError {

	AUTH_ERROR("COMMON_ERROR_000000", "权限验证失败", "权限验证失败"),
	SYSTEM_ERROR("COMMON_ERROR_000001", "系统异常", "系统异常"),
	PARAMS_ERROR("COMMON_ERROR_000002", "非法字符", "非法字符"),
	REQUIRED_ERROR("COMMON_ERROR_000003", "缺少必要参数", "缺少必要参数"),
	SIGNATURE_ERROR("COMMON_ERROR_000004", "签名验证失败", "签名验证失败");

	private String errorCode;
	private String errorTitle;
	private String errorMsg;

	CommonError(String errorCode, String errorTitle, String errorMsg) {
		this.errorCode = errorCode;
		this.errorTitle = errorTitle;
		this.errorMsg = errorMsg;
	}

	public String getErrorCode() {
		return this.errorCode;
	}

	public String getErrorTitle() {
		return this.errorTitle;
	}

	public String getErrorMsg() {
		return this.errorMsg;
	}

}